Accepts a buffer of the editable document or part of it, and writes it to an upstream or to a requesting party.
public RasterExceptionCode Write(
byte[] data,
int offset,
int count
)
public:
RasterExceptionCode^ Write(
array<Byte>^ data,
Int32 offset,
Int32 count
)
data
Buffer with editable contents, can be all or part of the data.
If Buffer
is empty it does not mean it is at the end of the stream and should return RasterExceptionCode.Success in this case.
offset
Offset from where to start reading data from data parameter.
count
Number of elements (bytes) to read starting from offset .
Value | Description |
---|---|
RasterExceptionCode.Success |
Stream was received successfully. |
RasterExceptionCode.Failed |
Error occurred. Server should return the exception with this error code. |
RasterExceptionCode.UserAborted |
Operation was aborted. |
Servers call Write(byte[],int,int) with chunks of data, repeatedly until all data is written or sent. The server must guarantee sequential calls to Write(byte[],int,int) and that only one thread at a time is writing. On the other hand, Clients read all data in the stream and typically send it upstream to a web client.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document